<a href="/languages/add">Add New</a>
<p />
<span style="color: green"><%= flash['languageSuccess'] %></span>
<p />
<table>
    <tr>
        <th>Name</th>
        <th>Statically Typed</th>
        <th>Dynamically Typed</th>
        <th></th>
    </tr>
    <% languages.forEach(function(language) { %>
        <tr>
            <td>
                <%= language.name() %>
            </td>
            <td><%= language.static() ? 'Yes' : 'No' %></td>
            <td><%= language.dynamic() ? 'Yes' : 'No' %></td>
            <td>
               <a href="/languages/<%= language._id %>/edit">Edit</a>
               <%h postLink({href: '/languages/' + language._id + '/delete',
                             onclick: "if(!window.confirm('Are you sure?')) return false;",
                             text: 'Delete'}) %>
            </td>
        </tr>
    <% }); %>
</table>
